package krow.dev.contest.controller;

import java.util.*;

import krow.dev.contest.model.*;


import android.content.*;
import android.content.pm.*;

public class MenuBuilder {

	

	private List<MenuItem> mMenuItemList;

	public MenuBuilder(Context context) {

		

		mMenuItemList = new ArrayList<MenuItem>();
	}
	
	
	public void addMenu(int icon, String name) {

		MenuItem menuItem = new MenuItem();
		menuItem.setResourceId(icon);
		menuItem.setName(name);
		

		mMenuItemList.add(menuItem);
	}

	public void addMenu(int icon, String name, String rssAddr) {

		MenuItem menuItem = new MenuItem();
		menuItem.setResourceId(icon);
		menuItem.setName(name);
		menuItem.setRssAddr(rssAddr);

		mMenuItemList.add(menuItem);
	}

	public List<MenuItem> build() {
		

		return mMenuItemList;
	}
}
